Fix bug #12403 with garbled display under non-zero scroll-margin.
authorEli Zaretskii <eliz@gnu.org>
Wed, 12 Sep 2012 17:12:10 +0000 (20:12 +0300)
committerEli Zaretskii <eliz@gnu.org>
Wed, 12 Sep 2012 17:12:10 +0000 (20:12 +0300)
commitc4ef1920b84d2e7ff2f506cf36cf569f84ad46a8
tree530fe8433df6b6a68bbcdb45dba53c9ed40e105a
parent9ffc00fb5e653c0e8757b878ccda584bc5d8d08c
Fix bug #12403 with garbled display under non-zero scroll-margin.

 src/xdisp.c (try_window_reusing_current_matrix): Under bidi
 reordering, locate the cursor by calling set_cursor_from_row; if
 that fails, clear the desired glyph matrix before returning a
 failure indication to the caller.  Fixes leaving garbled display
 when fast scrolling with a down-key when scroll-margin is non-zero.
src/ChangeLog
src/xdisp.c